<template>
    <el-form-item label="按钮样式">
        <el-switch v-model="optionModel.buttonStyle" @change="handleBorderChange"></el-switch>
    </el-form-item>
</template>

<script setup>
defineOptions({
    name:"buttonStyle-editor"
})

const props = defineProps({
    optionModel:{
        type:Object,
        default:()=>({})
    }
})

const handleBorderChange = (v) => {
    if(v){
        props.optionModel.border = false
    }
}
</script>

<style lang='scss' scoped></style>